package com.eshop.modules.user.service.dto;

import java.io.Serializable;

public class UserLevelInfoDto implements Serializable {
    private Integer addTime;
    private Double discount;
    private Integer grade;
    private String icon;
    private Integer id;
    private Integer levelId;
    private String name;

    /* access modifiers changed from: protected */
    public boolean canEqual(Object other) {
        return other instanceof UserLevelInfoDto;
    }

    public boolean equals(Object o) {
        if (o == this) {
            return true;
        }
        if (!(o instanceof UserLevelInfoDto)) {
            return false;
        }
        UserLevelInfoDto other = (UserLevelInfoDto) o;
        if (!other.canEqual(this)) {
            return false;
        }
        Integer this$id = getId();
        Integer other$id = other.getId();
        if (this$id != null ? !this$id.equals(other$id) : other$id != null) {
            return false;
        }
        Integer this$addTime = getAddTime();
        Integer other$addTime = other.getAddTime();
        if (this$addTime != null ? !this$addTime.equals(other$addTime) : other$addTime != null) {
            return false;
        }
        Double this$discount = getDiscount();
        Double other$discount = other.getDiscount();
        if (this$discount != null ? !this$discount.equals(other$discount) : other$discount != null) {
            return false;
        }
        Integer this$levelId = getLevelId();
        Integer other$levelId = other.getLevelId();
        if (this$levelId != null ? !this$levelId.equals(other$levelId) : other$levelId != null) {
            return false;
        }
        Integer this$grade = getGrade();
        Integer other$grade = other.getGrade();
        if (this$grade != null ? !this$grade.equals(other$grade) : other$grade != null) {
            return false;
        }
        String this$name = getName();
        String other$name = other.getName();
        if (this$name != null ? !this$name.equals(other$name) : other$name != null) {
            return false;
        }
        String this$icon = getIcon();
        String other$icon = other.getIcon();
        return this$icon != null ? this$icon.equals(other$icon) : other$icon == null;
    }

    public int hashCode() {
        int i = 43;
        Integer $id = getId();
        int hashCode = $id == null ? 43 : $id.hashCode();
        Integer $addTime = getAddTime();
        int i2 = (hashCode + 59) * 59;
        int hashCode2 = $addTime == null ? 43 : $addTime.hashCode();
        Double $discount = getDiscount();
        int i3 = (i2 + hashCode2) * 59;
        int hashCode3 = $discount == null ? 43 : $discount.hashCode();
        Integer $levelId = getLevelId();
        int i4 = (i3 + hashCode3) * 59;
        int hashCode4 = $levelId == null ? 43 : $levelId.hashCode();
        Integer $grade = getGrade();
        int i5 = (i4 + hashCode4) * 59;
        int hashCode5 = $grade == null ? 43 : $grade.hashCode();
        String $name = getName();
        int i6 = (i5 + hashCode5) * 59;
        int hashCode6 = $name == null ? 43 : $name.hashCode();
        String $icon = getIcon();
        int i7 = (i6 + hashCode6) * 59;
        if ($icon != null) {
            i = $icon.hashCode();
        }
        return i7 + i;
    }

    public void setAddTime(Integer addTime2) {
        this.addTime = addTime2;
    }

    public void setDiscount(Double discount2) {
        this.discount = discount2;
    }

    public void setGrade(Integer grade2) {
        this.grade = grade2;
    }

    public void setIcon(String icon2) {
        this.icon = icon2;
    }

    public void setId(Integer id2) {
        this.id = id2;
    }

    public void setLevelId(Integer levelId2) {
        this.levelId = levelId2;
    }

    public void setName(String name2) {
        this.name = name2;
    }

    public String toString() {
        return "UserLevelInfoDto(id=" + getId() + ", addTime=" + getAddTime() + ", discount=" + getDiscount() + ", levelId=" + getLevelId() + ", name=" + getName() + ", icon=" + getIcon() + ", grade=" + getGrade() + ")";
    }

    public Integer getId() {
        return this.id;
    }

    public Integer getAddTime() {
        return this.addTime;
    }

    public Double getDiscount() {
        return this.discount;
    }

    public Integer getLevelId() {
        return this.levelId;
    }

    public String getName() {
        return this.name;
    }

    public String getIcon() {
        return this.icon;
    }

    public Integer getGrade() {
        return this.grade;
    }
}
